import pygame
from pygame.locals import *

def load_graphics():
	grass = pygame.image.load('gfx/grass.bmp').convert()
	field = pygame.image.load('gfx/field.png').convert()
	team1 = pygame.image.load('gfx/team1.bmp').convert()
	team1.set_colorkey((255,0,255))
	team2 = pygame.image.load('gfx/team2.bmp').convert()
	team2.set_colorkey((255,0,255))
	ball = pygame.image.load('gfx/ball.bmp').convert()
	ball.set_colorkey((255,0,255))
	blood = pygame.image.load('gfx/blood.bmp').convert()
	blood.set_colorkey((255,0,255))
	move_sq = pygame.image.load('gfx/move_sq.bmp').convert()
	move_sq.set_colorkey((255,0,255))
	hit_sq = pygame.image.load('gfx/hit_sq.bmp').convert()
	hit_sq.set_colorkey((255,0,255))

	images = {	'grass': grass,
				'field': field,
				'team1': team1,
				'team2': team2,
				'ball': ball,
				'blood': blood,
				'move_sq': move_sq,
				'hit_sq': hit_sq }
	return images
	
def load_dice_graphics():
	images = {	'push': pygame.image.load('gfx/push.png').convert(),
				'pow': pygame.image.load('gfx/pow.png').convert(),
				'kapow': pygame.image.load('gfx/kapow.png').convert(),
				'skull': pygame.image.load('gfx/skull.png').convert(),
				'skullpow': pygame.image.load('gfx/skullpow.png').convert()
				}
	return images
	
def load_menu_graphics():
	hit_icon = pygame.image.load('gfx/i_tackle_off.png').convert()
	move_icon = pygame.image.load('gfx/i_move_on.png').convert()
	pickup_icon = pygame.image.load('gfx/i_pickup_off.png').convert()
	selected_icon = pygame.Surface((50,32))
	selected_icon.fill((255,0,0))
	selected_icon.set_alpha(70)
	selected_icon.set_colorkey((255,0,255))
	images = { 	'pickup_icon': pickup_icon,
				'hit_icon': hit_icon,
				'move_icon': move_icon,
				'selected_icon': selected_icon,
				'move_off': pygame.image.load('gfx/i_move_off.png').convert()}
	return images